<?
if(!check_perms('admin_clear_cache')) { error(403); }

show_header('Clear a cache key');

//Make sure the form was sent
if (!empty($_GET['key'])) {
	$Cache->delete_value($_GET['key']);
	echo '<div class="save_message">Key '.display_str($_GET['key']).' cleared!</div>';

}
?>
	<h2>Clear a cache key</h2>
	
	<form method="get" action="" name="clear_cache">
		<input type="hidden" name="action" value="clear_cache" />
		<table cellpadding="2" cellspacing="1" border="0" align="center">
		<tr valign="top">
			<td align="right">Key</td>
			<td align="left">
				<input type="text" name="key" id="key" class="inputtext" />
				<input type="submit" value="Clear key" class="submit" />
			</td>
		</tr>
	</table>
	</form>
<?

//Show the footer
show_footer();

?>
